import request from '@/utils/request';

/** 团组织列表 */
export const GetMemberList = payload =>
  request({
    url: '/committee/member/appointList',
    method: 'get',
    params: payload,
  });

/** 学期列表 */
export const GetYearList = payload =>
  request({
    url: '/committee/year/list',
    method: 'get',
    params: payload,
  });

/** 任命审核 */
export const CheckMember = payload =>
  request({
    url: '/committee/member/check',
    method: 'post',
    data: payload,
  });

/** 删除任命信息 */
export const DelMember = orgMemberId =>
  request({
    url: `/committee/member/${orgMemberId}`,
    method: 'delete',
  });

/** 任命信息详情 */
export const MemberDetail = orgMemberId =>
  request({
    url: `/committee/member/${orgMemberId}`,
    method: 'get',
  });

/** 审批考核 */
export const MemberCheckRate = payload =>
  request({
    url: '/committee/member/checkrate',
    method: 'post',
    data: payload,
  });

/** 工作考核 */
export const MemberRate = payload =>
  request({
    url: '/committee/member/rate',
    method: 'post',
    data: payload,
  });

/** 班级列表 */
export const GetClassInfo = () =>
  request({
    url: '/committee/userinfo/getClassInfo',
    method: 'get',
  });
